package cn.cnsuh.service;


import cn.cnsuh.domain.User;

import java.util.List;

/**
 * @author Magic
 * @create 2020-05-09 11:28
 */
public interface UserService {
    /**
     * 登录
     * @param user
     * @return
     */

    User login(User user);

    /**
     * 注册用户
     *
     * @param user
     * @return
     */
    boolean regist(User user) throws Exception;


    boolean active(String code);

    boolean updateUser(User user, int uid);

    /**
     * 查询所有用户信息
     * @return
     */
    public List<User> findAll();


    void deleteUser(int uid);


}

